type nhooyr.io/websocket.header
26 uses
nhooyr.io/websocket (current package)
conn.go#L71: writeHeader header
frame.go#L38: type header struct {
frame.go#L53: func readFrameHeader(r *bufio.Reader, readBuf []byte) (h header, err error) {
frame.go#L58: return header{}, err
frame.go#L70: return header{}, err
frame.go#L87: return header{}, err
frame.go#L91: return header{}, fmt.Errorf("received negative payload length: %v", h.payloadLength)
frame.go#L97: return header{}, err
frame.go#L111: func writeFrameHeader(h header, w *bufio.Writer, buf []byte) (err error) {
read.go#L161: func (c *Conn) readRSV1Illegal(h header) bool {
read.go#L173: func (c *Conn) readLoop(ctx context.Context) (header, error) {
read.go#L177: return header{}, err
read.go#L183: return header{}, err
read.go#L187: return header{}, errors.New("received unmasked frame from client")
read.go#L196: return header{}, err
read.go#L198: return header{}, fmt.Errorf("failed to handle control frame %v: %w", h.opcode, err)
read.go#L205: return header{}, err
read.go#L210: func (c *Conn) readFrameHeader(ctx context.Context) (header, error) {
read.go#L213: return header{}, net.ErrClosed
read.go#L221: return header{}, net.ErrClosed
read.go#L223: return header{}, ctx.Err()
read.go#L226: return header{}, err
read.go#L232: return header{}, net.ErrClosed
read.go#L269: func (c *Conn) handleControl(ctx context.Context, h header) (err error) {
read.go#L379: func (mr *msgReader) reset(ctx context.Context, h header) {
read.go#L391: func (mr *msgReader) setFrame(h header) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |